package cn.edu.neu.dao;

import cn.edu.neu.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int updateUserStatus(@Param("userId") Integer userId, @Param("status") Integer status);

    User getUserByUsernameAndPassword(@Param("name") String name, @Param("password") String password);
}